<%@ page contentType="text/html;charset=UTF-8" session="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
	<head>
		<title>BLOG::spring mvc with hibernate</title>
	</head>
	<link rel="stylesheet"
	href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet"
	href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/starter-template.css">
<script
	src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<SCRIPT language='JavaScript' type='text/javascript'>
	function submit() {
		document.userForm.submit();
		return;
	}
</SCRIPT>	
</head>
	<body>
	<!-- 등록이 안되는 이슈  -->
		<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#">BLOG::Season2</a>
			</div>
			<div class="collapse navbar-collapse">
				<ul class="nav navbar-nav">
					<li class="active"><a href="#">Home</a></li>
					<li><a href="<%=request.getContextPath()%>/findBlogs">Blog</a></li>
				</ul>
			</div>
			<!--/.nav-collapse -->
		</div>
	</nav>
	<div class="container">
		<div class="starter-template">
				<center>
		<h1>사용자등록</h1>
		<form:form modelAttribute="user" name="userForm" action="saveUser" method="post" >		
		<form:input path="email" size="50" class="form-control" />
		<form:input path="password" size="50" class="form-control" />
<!-- 		 email : <input type="text" id="email" name="email"> -->
<!-- 		 password : <input type="password" id="password" name="password"> -->
		 <a href="javascript:submit()" class="btn btn-success">
				저장 </a> &nbsp;&nbsp;&nbsp
		 <a href="register">취소</a>
		 </form:form>
		</center>
		</div>
	</div>
	<!-- /.container -->
	
	</body>
</html>
